import ClothAdWindow_Generate from "../ui-generate/ClothAdWindow_generate";

export class ClothAdWindow extends ClothAdWindow_Generate{
    private callback:Function
    private caller:any

    onStart(){
        this.btn_checkpoint_resurgence.onClicked.add(()=>{
            UIService.hideUI(this)
        })
        this.btn_last_jump_resurgence.onClicked.add(()=>{
            UIService.hideUI(this)
            this.callback.call(this.caller)
        })
    }

    onShow(){
        
    }

    onHide(){
        
    }

    setInfo(callback:Function, caller:any){
        this.callback = callback
        this.caller = caller
    }
}